import { defineStore } from "pinia";

export const useLoginState = defineStore("LoginState", {
  // 开启数据持久化
  persist: true,
  state: () => ({
    userInfo: {},
  }),
  actions: {
    setUserData(data: {}) {
      this.userInfo = data;
    },
  },
});
